<template>
    <div class="card">
        <div class="top">
            <div class="avatar">
                <img :src="imgURL" alt="">
            </div>
            <div class="right">
                <div class="name">
                    <slot name="name"></slot>
                </div>
                <div class="courseName">
                    <slot name="courseName"></slot>
                </div>
                <div class="courseName teamNum">
                    团队人数：<slot name="teamNum"></slot>
                </div>
            </div>
        </div>
        <div class="opera" @click="gotoDetail">
            操作
        </div>
    </div>
</template>
<script setup>
import imgURL from '../assets/images/teacher/public/信息.svg'
import {useRouter} from 'vue-router'
const props = defineProps({
    relationId: Number
})

const router = useRouter()


// 查看学生项目页面
const gotoDetail = function(){
    // let rid = props.relationId
    // router.push('/ManageStudent/'+rid)
    router.push('/ManageStudentTeam')
}
</script>
<style scoped>
.card {
    width: 28%;
    height: 154px;
    background-color: #ffffff;
    box-shadow: 2px 3px 6px 0px rgba(0, 0, 0, 0.16);
    border-radius: 10px;
    float: left;
    margin-right: 5.3%;
    margin-top: 3%;
}

.top {
    width: 100%;
    height: 74%;
    display: flex;
}

.avatar {
    width: 20%;
    padding-left: 8%;
    height: 100%;
    padding-top: 5%;
}

.right {
    width: 70%;
    margin-left: 8%;
    margin-top: 5.5%;
}

.name {
    font-family: Source Han Sans CN;
    font-size: 22px;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-stretch: normal;
    line-height: 37px;
    letter-spacing: 0px;
    color: #707070;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 550;
    text-overflow: ellipsis;
}

.courseName {
    font-family: Source Han Sans CN;
    font-size: 15px;
    font-weight: normal;
    font-stretch: normal;
    display: flex;
    align-items: center;
    line-height: 20px;
    margin-top: 2%;
    letter-spacing: 0px;
    color: #707070;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.teamNum{
    font-size: 13px;
}
.opera {
    width: 100%;
    height: 26%;
    background-color: #dbdde3;
    box-shadow: 2px 3px 6px 0px rgba(0, 0, 0, 0.16);
    border-radius: 0px 0px 10px 10px;
    opacity: 0.5;
    font-family: Source Han Sans CN;
    font-size: 18px;
    font-weight: normal;
    font-stretch: normal;
    letter-spacing: 0px;
    color: #707070;
    display: flex;
    justify-content: center;
    cursor: pointer;
    align-items: center;
}</style>